package anyVehicle;

import java.util.List;

import net.minecraft.src.Chunk;
import net.minecraft.src.ChunkPosition;
import net.minecraft.src.EnumCreatureType;
import net.minecraft.src.IChunkProvider;
import net.minecraft.src.IProgressUpdate;
import net.minecraft.src.World;

public class VehicleProviderGenerate implements IChunkProvider {

	private World worldObj;

	public VehicleProviderGenerate(World world) {
		this.worldObj = world;
	}
	
	@Override
	public boolean chunkExists(int i, int j) {
		return true;
	}

	@Override
	public Chunk provideChunk(int i, int j) {
        byte abyte0[] = new byte[16 * 128 * 16];
        Chunk chunk = new Chunk(worldObj, abyte0, i, j);
        chunk.generateSkylightMap();
        return chunk;
	}

	@Override
	public Chunk loadChunk(int i, int j) {
		return provideChunk(i, j);
	}

	@Override
	public void populate(IChunkProvider ichunkprovider, int i, int j) {
		// do nothing

	}

	@Override
	public boolean saveChunks(boolean flag, IProgressUpdate iprogressupdate) {
		return true;
	}

	@Override
	public boolean unload100OldestChunks() {
		return false;
	}

	@Override
	public boolean canSave() {
		return true;
	}

	@Override
	public String makeString() {
		return "VehicleProviderGenerate";
	}

	@Override
	public List func_40377_a(EnumCreatureType enumcreaturetype, int i, int j,
			int k) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ChunkPosition func_40376_a(World world, String s, int i, int j, int k) {
		// TODO Auto-generated method stub
		return null;
	}

}
